package com.hundsun.cprs.yyt.service.common.enums;

public enum EnumChannelBankNo {

    SHBANK("boshzjjg","上海银行"),
    TLPAY("tlzf", "通联支付");

    private String code;
    private String desc;

    private EnumChannelBankNo(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static EnumChannelBankNo index(String code){
        for (EnumChannelBankNo et : EnumChannelBankNo.values()) {
            if(et.getCode().equals(code))
                return et;
        }
        return null;
    }
}
